diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-12-16 12:40:45 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-12-16 12:44:22 +0000 |
| commit | 415533b5b57c2737595ec3ad74ef84a607ab4570 (patch) | |
| tree | d44dd192fbd6b97680fd4b584ce25e7b15800543 /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:pointersToFreeMutableVariablesAreStoredInAndLoadedFromEnvironment(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected | |
| parent | e14ffda9239c799636ee54ec6570c79f0f2a642f (diff) | |
Always store single element for additional closure data
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:pointersToFreeMutableVariablesAreStoredInAndLoadedFromEnvironment(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
1 files changed, 10 insertions, 10 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:pointersToFreeMutableVariablesAreStoredInAndLoadedFromEnvironment(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:pointersToFreeMutableVariablesAreStoredInAndLoadedFromEnvironment(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected index 3e57ae73..ec63c7ef 100644 --- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:pointersToFreeMutableVariablesAreStoredInAndLoadedFromEnvironment(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:pointersToFreeMutableVariablesAreStoredInAndLoadedFromEnvironment(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -11,15 +11,15 @@ Compilation unit elements: memory-load (local "local__a") pointer=(local "closurePointer__0") - layout=(struct (function-ptr (struct (data-ptr data-ptr)))) - offset=(1 0) + layout=(struct (function-ptr (struct ()) (struct (data-ptr data-ptr)))) + offset=(2 0) ) ( memory-load (local "local__b") pointer=(local "closurePointer__0") - layout=(struct (function-ptr (struct (data-ptr data-ptr)))) - offset=(1 1) + layout=(struct (function-ptr (struct ()) (struct (data-ptr data-ptr)))) + offset=(2 1) ) (return (local "local__a")) ) @@ -34,26 +34,26 @@ Locals: Instructions: ( - (alloc-heap (local "closurePointer__f__0") (struct (function-ptr (struct (data-ptr data-ptr))))) + (alloc-heap (local "closurePointer__f__0") (struct (function-ptr (struct ()) (struct (data-ptr data-ptr))))) ( memory-store pointer=(local "closurePointer__f__0") - layout=(struct (function-ptr (struct (data-ptr data-ptr)))) + layout=(struct (function-ptr (struct ()) (struct (data-ptr data-ptr)))) offset=(0) value=(function-ptr "shed__function__f__0") ) ( memory-store pointer=(local "closurePointer__f__0") - layout=(struct (function-ptr (struct (data-ptr data-ptr)))) - offset=(1 0) + layout=(struct (function-ptr (struct ()) (struct (data-ptr data-ptr)))) + offset=(2 0) value=(local "local__a") ) ( memory-store pointer=(local "closurePointer__f__0") - layout=(struct (function-ptr (struct (data-ptr data-ptr)))) - offset=(1 1) + layout=(struct (function-ptr (struct ()) (struct (data-ptr data-ptr)))) + offset=(2 1) value=(local "local__b") ) (data-ptr-to-int (local "closure__f__0") (local "closurePointer__f__0")) |
